package com.ourteam.education.domain;
/**
 * Template Name : DTO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Nov 30 16:49:33 CST 2018
 * Auto Generate Date : 2019-09-22 15:15:34
  * Warning ! This file will be overwrite when regenerate !
  * 
 */

import java.util.Map;
import java.util.HashMap;
import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.beanutils.BeanMap;
import net.dao.IDataPopulateCallback;


public class LessonBean implements java.io.Serializable {

        
	private static Map<String,String> mappedDaoFields = new HashMap<String,String>();
    
	private com.ourteam.education.dao.Lesson lesson;

	protected BeanMap getBeanMap(){
	
		return new BeanMap(lesson);
	}
	
	static{
				
												
		mappedDaoFields.put("id",com.ourteam.education.dao.ILessonDAO.Id);
		
																																																																														
				
																
				
																
				
																
				
																
				
																
				
																
		mappedDaoFields.put("campusId",com.ourteam.education.dao.ILessonDAO.CampusId);
		
																																																																										
				
																
				
																
				
																
				
																
				
																
				
																				
		mappedDaoFields.put("classId",com.ourteam.education.dao.ILessonDAO.ClassId);
		
																																																																						
				
																
				
																
				
																
				
																
				
																
				
																								
		mappedDaoFields.put("teacherId",com.ourteam.education.dao.ILessonDAO.TeacherId);
		
																																																																		
				
																
				
																
				
																
				
																
				
																
				
																												
		mappedDaoFields.put("coursePriceId",com.ourteam.education.dao.ILessonDAO.CoursePriceId);
		
																																																														
				
																
				
																
				
																
				
																
				
																
				
																																
		mappedDaoFields.put("classroomId",com.ourteam.education.dao.ILessonDAO.ClassroomId);
		
																																																										
				
																
				
																
				
																
				
																
				
																
				
																																				
		mappedDaoFields.put("repeatType",com.ourteam.education.dao.ILessonDAO.RepeatType);
		
																																																						
				
																
				
																
				
																
				
																
				
																
				
																																								
		mappedDaoFields.put("repeatPeriod",com.ourteam.education.dao.ILessonDAO.RepeatPeriod);
		
																																																		
				
																
				
																
				
																
				
																
				
																
				
																																												
		mappedDaoFields.put("excludeHolidays",com.ourteam.education.dao.ILessonDAO.ExcludeHolidays);
		
																																														
				
																
				
																
				
																
				
																
				
																
				
																																																
		mappedDaoFields.put("startDate",com.ourteam.education.dao.ILessonDAO.StartDate);
		
																																										
				
																
				
																
				
																
				
																
				
																
				
																																																				
		mappedDaoFields.put("endDate",com.ourteam.education.dao.ILessonDAO.EndDate);
		
																																						
				
																
				
																
				
																
				
																
				
																
				
																																																								
		mappedDaoFields.put("maxLessonCount",com.ourteam.education.dao.ILessonDAO.MaxLessonCount);
		
																																		
				
																
				
																
				
																
				
																
				
																
				
																																																												
		mappedDaoFields.put("startLessonTime",com.ourteam.education.dao.ILessonDAO.StartLessonTime);
		
																														
				
																
				
																
				
																
				
																
				
																
				
																																																																
		mappedDaoFields.put("endLessonTime",com.ourteam.education.dao.ILessonDAO.EndLessonTime);
		
																										
				
																
				
																
				
																
				
																
				
																
				
																																																																				
		mappedDaoFields.put("lessonTopic",com.ourteam.education.dao.ILessonDAO.LessonTopic);
		
																						
				
																
				
																
				
																
				
																
				
																
				
																																																																								
		mappedDaoFields.put("deleteFlag",com.ourteam.education.dao.ILessonDAO.DeleteFlag);
		
																		
				
																
				
																
				
																
				
																
				
																
				
																																																																												
		mappedDaoFields.put("status",com.ourteam.education.dao.ILessonDAO.Status);
		
														
				
																
				
																
				
																
				
																
				
																
				
																																																																																
		mappedDaoFields.put("remarks",com.ourteam.education.dao.ILessonDAO.Remarks);
		
										
				
																
				
																
				
																
				
																
				
																
				
																																																																																		
				
										
		mappedDaoFields.put("campusName",com.ourteam.education.dao.ILessonDAO.CampusName);
								
				
																
				
																
				
																
				
																
				
																																																																																		
				
																
				
																
				
										
		mappedDaoFields.put("className",com.ourteam.education.dao.ILessonDAO.ClassName);
								
				
																
				
																
				
																																																																																		
				
																
				
																
				
																
				
										
		mappedDaoFields.put("teacherName",com.ourteam.education.dao.ILessonDAO.TeacherName);
								
				
																
				
																																																																																		
				
																
				
										
		mappedDaoFields.put("classroomName",com.ourteam.education.dao.ILessonDAO.ClassroomName);
								
				
																
				
																
				
																
				
																																																																																				
		mappedDaoFields.put("courseId",com.ourteam.education.dao.ILessonDAO.CourseId);
		
						
				
																
				
																
				
																
				
																
				
																
				
																																																																																		
				
																
				
																
				
																
				
																
				
																
				
																																																																																		
				
																
				
																
				
																
				
																
				
										
		mappedDaoFields.put("courseName",com.ourteam.education.dao.ILessonDAO.CourseName);
								
				
				
	}
	
	public static String getMappedDAOField(String aAttrName){
		return mappedDaoFields.get(aAttrName);
	}
	
	
	public LessonBean() {
		super();
	    		
		this.lesson = new com.ourteam.education.dao.Lesson();
                
	}
	
		
	public LessonBean(com.ourteam.education.dao.Lesson lesson) {
		super();
	
		this.lesson = lesson;
		
	}
		
		
		
    	
	public com.ourteam.education.dao.Lesson convertToLesson(){
		return this.lesson;
	}
	
	public com.ourteam.education.dao.Lesson convertTo(){
		return this.lesson;
	}
	
			
		
			
			
		
	/**
	 * Get id
	 * 
	 * @return long
	 */
	public long getId(){
		return (long) this.lesson.getId();
	}
	
	/**
	 * Set id
	 * 
	 * @parameter long
	 */
	public void setId(long id){
		
		this.lesson.setId(id);
	}
		
																																							
			
									
			
									
			
									
			
									
			
									
		
		
					
			
		
	/**
	 * Get campusId
	 * 
	 * @return long
	 */
	public long getCampusId(){
		return (long) this.lesson.getCampusId();
	}
	
	/**
	 * Set campusId
	 * 
	 * @parameter long
	 */
	public void setCampusId(long campusId){
		
		this.lesson.setCampusId(campusId);
	}
		
																																					
			
									
			
									
			
									
			
									
			
									
		
		
							
			
		
	/**
	 * Get classId
	 * 
	 * @return long
	 */
	public long getClassId(){
		return (long) this.lesson.getClassId();
	}
	
	/**
	 * Set classId
	 * 
	 * @parameter long
	 */
	public void setClassId(long classId){
		
		this.lesson.setClassId(classId);
	}
		
																																			
			
									
			
									
			
									
			
									
			
									
		
		
									
			
		
	/**
	 * Get teacherId
	 * 
	 * @return long
	 */
	public long getTeacherId(){
		return (long) this.lesson.getTeacherId();
	}
	
	/**
	 * Set teacherId
	 * 
	 * @parameter long
	 */
	public void setTeacherId(long teacherId){
		
		this.lesson.setTeacherId(teacherId);
	}
		
																																	
			
									
			
									
			
									
			
									
			
									
		
		
											
			
		
	/**
	 * Get coursePriceId
	 * 
	 * @return long
	 */
	public long getCoursePriceId(){
		return (long) this.lesson.getCoursePriceId();
	}
	
	/**
	 * Set coursePriceId
	 * 
	 * @parameter long
	 */
	public void setCoursePriceId(long coursePriceId){
		
		this.lesson.setCoursePriceId(coursePriceId);
	}
		
																															
			
									
			
									
			
									
			
									
			
									
		
		
													
			
		
	/**
	 * Get classroomId
	 * 
	 * @return long
	 */
	public long getClassroomId(){
		return (long) this.lesson.getClassroomId();
	}
	
	/**
	 * Set classroomId
	 * 
	 * @parameter long
	 */
	public void setClassroomId(long classroomId){
		
		this.lesson.setClassroomId(classroomId);
	}
		
																													
			
									
			
									
			
									
			
									
			
									
		
		
															
			
		
	/**
	 * Get repeatType
	 * 
	 * @return String
	 */
	public String getRepeatType(){
		return (String) this.lesson.getRepeatType();
	}
	
	/**
	 * Set repeatType
	 * 
	 * @parameter String
	 */
	public void setRepeatType(String repeatType){
		
		this.lesson.setRepeatType(repeatType);
	}
		
																											
			
									
			
									
			
									
			
									
			
									
		
		
																	
			
		
	/**
	 * Get repeatPeriod
	 * 
	 * @return String
	 */
	public String getRepeatPeriod(){
		return (String) this.lesson.getRepeatPeriod();
	}
	
	/**
	 * Set repeatPeriod
	 * 
	 * @parameter String
	 */
	public void setRepeatPeriod(String repeatPeriod){
		
		this.lesson.setRepeatPeriod(repeatPeriod);
	}
		
																									
			
									
			
									
			
									
			
									
			
									
		
		
																			
			
		
	/**
	 * Get excludeHolidays
	 * 
	 * @return String
	 */
	public String getExcludeHolidays(){
		return (String) this.lesson.getExcludeHolidays();
	}
	
	/**
	 * Set excludeHolidays
	 * 
	 * @parameter String
	 */
	public void setExcludeHolidays(String excludeHolidays){
		
		this.lesson.setExcludeHolidays(excludeHolidays);
	}
		
																							
			
									
			
									
			
									
			
									
			
									
		
		
																					
			
		
	/**
	 * Get startDate
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getStartDate(){
		return (java.util.Date) this.lesson.getStartDate();
	}
	
	/**
	 * Set startDate
	 * 
	 * @parameter java.util.Date
	 */
	public void setStartDate(java.util.Date startDate){
		
		this.lesson.setStartDate(startDate);
	}
		
																					
			
									
			
									
			
									
			
									
			
									
		
		
																							
			
		
	/**
	 * Get endDate
	 * 
	 * @return java.util.Date
	 */
	public java.util.Date getEndDate(){
		return (java.util.Date) this.lesson.getEndDate();
	}
	
	/**
	 * Set endDate
	 * 
	 * @parameter java.util.Date
	 */
	public void setEndDate(java.util.Date endDate){
		
		this.lesson.setEndDate(endDate);
	}
		
																			
			
									
			
									
			
									
			
									
			
									
		
		
																									
			
		
	/**
	 * Get maxLessonCount
	 * 
	 * @return long
	 */
	public long getMaxLessonCount(){
		return (long) this.lesson.getMaxLessonCount();
	}
	
	/**
	 * Set maxLessonCount
	 * 
	 * @parameter long
	 */
	public void setMaxLessonCount(long maxLessonCount){
		
		this.lesson.setMaxLessonCount(maxLessonCount);
	}
		
																	
			
									
			
									
			
									
			
									
			
									
		
		
																											
			
		
	/**
	 * Get startLessonTime
	 * 
	 * @return String
	 */
	public String getStartLessonTime(){
		return (String) this.lesson.getStartLessonTime();
	}
	
	/**
	 * Set startLessonTime
	 * 
	 * @parameter String
	 */
	public void setStartLessonTime(String startLessonTime){
		
		this.lesson.setStartLessonTime(startLessonTime);
	}
		
															
			
									
			
									
			
									
			
									
			
									
		
		
																													
			
		
	/**
	 * Get endLessonTime
	 * 
	 * @return String
	 */
	public String getEndLessonTime(){
		return (String) this.lesson.getEndLessonTime();
	}
	
	/**
	 * Set endLessonTime
	 * 
	 * @parameter String
	 */
	public void setEndLessonTime(String endLessonTime){
		
		this.lesson.setEndLessonTime(endLessonTime);
	}
		
													
			
									
			
									
			
									
			
									
			
									
		
		
																															
			
		
	/**
	 * Get lessonTopic
	 * 
	 * @return String
	 */
	public String getLessonTopic(){
		return (String) this.lesson.getLessonTopic();
	}
	
	/**
	 * Set lessonTopic
	 * 
	 * @parameter String
	 */
	public void setLessonTopic(String lessonTopic){
		
		this.lesson.setLessonTopic(lessonTopic);
	}
		
											
			
									
			
									
			
									
			
									
			
									
		
		
																																	
			
		
	/**
	 * Get deleteFlag
	 * 
	 * @return long
	 */
	public long getDeleteFlag(){
		return (long) this.lesson.getDeleteFlag();
	}
	
	/**
	 * Set deleteFlag
	 * 
	 * @parameter long
	 */
	public void setDeleteFlag(long deleteFlag){
		
		this.lesson.setDeleteFlag(deleteFlag);
	}
		
									
			
									
			
									
			
									
			
									
			
									
		
		
																																			
			
		
	/**
	 * Get status
	 * 
	 * @return String
	 */
	public String getStatus(){
		return (String) this.lesson.getStatus();
	}
	
	/**
	 * Set status
	 * 
	 * @parameter String
	 */
	public void setStatus(String status){
		
		this.lesson.setStatus(status);
	}
		
							
			
									
			
									
			
									
			
									
			
									
		
		
																																					
			
		
	/**
	 * Get remarks
	 * 
	 * @return String
	 */
	public String getRemarks(){
		return (String) this.lesson.getRemarks();
	}
	
	/**
	 * Set remarks
	 * 
	 * @parameter String
	 */
	public void setRemarks(String remarks){
		
		this.lesson.setRemarks(remarks);
	}
		
					
			
									
			
									
			
									
			
									
			
									
		
		
																																								
			
					
			
		
	/**
	 * Get campusName
	 * 
	 * @return String
	 */
	public String getCampusName(){
		
		return (String) this.lesson.getCampusName();
			
	}
	
					
			
									
			
									
			
									
			
									
		
		
																																								
			
									
			
									
			
					
			
		
	/**
	 * Get className
	 * 
	 * @return String
	 */
	public String getClassName(){
		
		return (String) this.lesson.getClassName();
			
	}
	
					
			
									
			
									
		
		
																																								
			
									
			
									
			
									
			
					
			
		
	/**
	 * Get teacherName
	 * 
	 * @return String
	 */
	public String getTeacherName(){
		
		return (String) this.lesson.getTeacherName();
			
	}
	
					
			
									
		
		
																																								
			
									
			
					
			
		
	/**
	 * Get classroomName
	 * 
	 * @return String
	 */
	public String getClassroomName(){
		
		return (String) this.lesson.getClassroomName();
			
	}
	
					
			
									
			
									
			
									
		
		
																																							
			
		
	/**
	 * Get courseId
	 * 
	 * @return long
	 */
	public long getCourseId(){
		return (long) this.lesson.getCourseId();
	}
	
	/**
	 * Set courseId
	 * 
	 * @parameter long
	 */
	public void setCourseId(long courseId){
		
		this.lesson.setCourseId(courseId);
	}
		
			
			
									
			
									
			
									
			
									
			
									
		
		
																																								
			
									
			
									
			
									
			
									
			
									
		
		
																																								
			
									
			
									
			
									
			
									
			
					
			
		
	/**
	 * Get courseName
	 * 
	 * @return String
	 */
	public String getCourseName(){
		
		return (String) this.lesson.getCourseName();
			
	}
	
					
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
					
	private String coursePriceDesc ;
	
	/**
	 * Get coursePriceDesc
	 * 
	 * @return String
	 */
	public String getCoursePriceDesc(){
			
	    return this.coursePriceDesc;
			
	}
	
	/**
	 * Set coursePriceDesc
	 * 
	 * @parameter String
	 */
	public void setCoursePriceDesc(String coursePriceDesc){
			
		this.coursePriceDesc = coursePriceDesc;
		
	}
	
		
			
			
	
	public int hashCode() {
   		return org.apache.commons.lang.builder.HashCodeBuilder.reflectionHashCode(this);
 	}
	
		
	public boolean equals(Object obj) {
		if (obj == null) {
            return false;
        } // end if

        if ((obj instanceof LessonBean) == false) {
            return false;
        } // end if

        LessonBean other = (LessonBean) obj;
        
        boolean isEqual = false;
        
                
        com.ourteam.education.dao.Lesson tempLesson = other.convertToLesson();
        
        if(tempLesson == null || this.lesson == null){
        	isEqual = false;
        }
        else if(tempLesson == this.lesson || tempLesson.equals(this.lesson) ){
        	isEqual = true;
        }
        else{
        	isEqual = false;
        }
        
        return isEqual;
	}
	
	
	public static LessonBean[] toArray(com.ourteam.education.dao.Lesson[] aLessons){
		
		return toArray(aLessons,null);
	}
	
	public static LessonBean[] toArray(com.ourteam.education.dao.Lesson[] aLessons , IDataPopulateCallback aCallBack){
		 
		 if(ArrayUtils.isEmpty(aLessons)){
		 	return new LessonBean[0];
		 }
		 
		 int length = aLessons.length;
		 
		 LessonBean[] beans = new LessonBean[length];
		  
		 for (int i = 0; i < length; i++) {
			beans[i] = new LessonBean(aLessons[i]);
			if(aCallBack != null){
			    aCallBack.populate(beans[i],new Object[]{aLessons[i]});
			}
		 }
		 
		 return beans;
	 }
	 
	 	 
}